package com.ktjy.example.example12To17;



import com.ktjy.example.example03To10.entity.Pet;

import java.util.*;

public class  TypeEntity {
    private String expression;
    private String code;
    private Pet refPet;
    private Pet innerPet;
    private String[] array;
    private List<String> list;
    private Set<String> set;
    private Map<String, String> map;
    private Properties props;
    private String emptyValue;
    private String nullValue = "初始有值,需设置为null";

    public void printAll(){
        System.out.println("expression:"+expression);
        System.out.println("code:"+code);
        if (refPet != null){
            refPet.introduce();
        }
        if (innerPet != null){
            innerPet.introduce();
        }
        System.out.println("array:"+ Arrays.toString(array));
        System.out.println("list:"+ list);
        System.out.println("set:"+ set);
        System.out.println("map:"+ map);
        System.out.println("props:"+ props);
        System.out.println("emptyValue:"+emptyValue);
        System.out.println("nullValue:"+nullValue);
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Pet getRefPet() {
        return refPet;
    }

    public void setRefPet(Pet refPet) {
        this.refPet = refPet;
    }

    public Pet getInnerPet() {
        return innerPet;
    }

    public void setInnerPet(Pet innerPet) {
        this.innerPet = innerPet;
    }

    public String[] getArray() {
        return array;
    }

    public void setArray(String[] array) {
        this.array = array;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public Set<String> getSet() {
        return set;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public Properties getProps() {
        return props;
    }

    public void setProps(Properties props) {
        this.props = props;
    }

    public String getEmptyValue() {
        return emptyValue;
    }

    public void setEmptyValue(String emptyValue) {
        this.emptyValue = emptyValue;
    }

    public String getNullValue() {
        return nullValue;
    }

    public void setNullValue(String nullValue) {
        this.nullValue = nullValue;
    }
}
